package com.hgf.helper.mybatisplusdemo.pojo.vo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.hgf.helper.mybatisplus.annotation.Association;
import com.hgf.helper.mybatisplus.annotation.MpJoinColumn;
import com.hgf.helper.mybatisplusdemo.db.entity.CardInfo;
import com.hgf.helper.mybatisplusdemo.db.entity.RewardInfo;
import com.hgf.helper.mybatisplusdemo.db.entity.ScoreInfo;
import com.hgf.helper.mybatisplusdemo.db.entity.Student;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 联查结果
 */
@Setter
@Getter
public class ResultVo {

    @Association
    private Student student;

    // 目前暂不支持嵌套封装
    @Association(aliasPrefix = "sc_")
    @MpJoinColumn(mainFieldName = "no",refFieldName = "stuNo")
    private ScoreInfo scoreInfo;

    @Association(aliasPrefix = "ca_")
    @MpJoinColumn(mainFieldName = "no",refFieldName = "stuNo")
    private CardInfo cardInfo;


}
